package util;

public class Pair implements Comparable<Pair> {
	public int first, second;
	public Pair(int x, int y) {first = x; second = y;}
	public Pair() {first = 0; second = 0;}
	public String toString() {return first + " " + second;}

	@Override
	public int compareTo(Pair e2) {
		return (first<e2.first ? -1 : (first==e2.first ? 0 : 1));
	}
}
